﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Kronos.Default" %>

<asp:Content ID="Header" ContentPlaceHolderID="Header" runat="server">
    <link rel="stylesheet" href="~/Style/Style.css" type="text/css" />
</asp:Content>



<asp:Content ID="Main" ContentPlaceHolderID="Main" runat="server">
    <!-- Main Page -->

    <!-- Login Box -->
    <div class="content">
        <div class="post">
        Username: <asp:TextBox ID="username_textbox" runat="server" />
        Password: <asp:TextBox ID="password_textbox" runat="server" TextMode="Password" />
        <asp:Button ID="login_button" runat="server" OnClick="LoginButtonClicked" Text="Login" />
        <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/Pages/Register.aspx">Register</asp:LinkButton>
        <div style="clear: both;">&nbsp;
            <asp:Label ID="login_label" forecolor="Red" runat="server" />
        </div>
        </div>
    </div>

   

    <div class="content">
        <div class="post">
            <h2 class="title">Welcome to myScheduler!</h2>
            <p>Follow the steps in red to begin creating your schedule</p>
        
            <p class="red">Step 1</p>
            Select your semester:<asp:RadioButtonList ID="SemesterRadioList" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem>Fall</asp:ListItem>
                <asp:ListItem>Winter</asp:ListItem>
                <asp:ListItem>Summer</asp:ListItem>
            </asp:RadioButtonList>
            &nbsp;<div style="clear: both;">&nbsp;</div>


        <!-- Add Course Box -->
        
            <div class="entry"> 
                <p class="red">Step 2</p>
                Add A Class: 
                
                <asp:TextBox ID="CourseTextbox" runat="server" BorderColor="#0066FF" BorderWidth="1px" ToolTip="Enter Class Example: SOEN341"/>
                
                            <ajaxToolkit:AutoCompleteExtender ID="AutoCompleteClass" runat="server" DelimiterCharacters="" Enabled="True" ServiceMethod="GetCourseList" ServicePath="~/Webservices/AutoCompleteCourse.asmx" TargetControlID="CourseTextbox" MinimumPrefixLength="1"
                            CompletionSetCount="3" CompletionInterval="500">
                            </ajaxToolkit:AutoCompleteExtender>
                <asp:Button ID="AddClassButton" runat="server" OnClick="UserAddedClass" Text="Add" Width="123px" />
                <asp:Label ID="Notification" runat="server" Text="Class Notification Goes Here" Visible="false" />
            </div>
        </div>
    </div>  

</asp:Content>
   
<asp:Content ID="Schedule" ContentPlaceHolderID="Schedule" runat="server">

<!-- Schedule Display Box -->
        <div class="post">
            <h3 class="current_page_item">Generated Schedules:</h3>
            <div style="clear: both;">&nbsp;</div>
            <div class="entry">
                <asp:DataGrid ID="TimeTable" runat="server" Height="16px" Width="16px" BackColor="#EFEFEF" BorderColor="#336699" BorderWidth="3px" CellSpacing="2" style="margin-right: 0px; margin-top: 0px;" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" PageSize="50" Font-Size="X-Small" ForeColor="Black" AutoGenerateColumns="false"  >
                    <EditItemStyle BorderColor="#0000CC" />
                    <HeaderStyle ForeColor="#003300" />
                    <Columns>
                        <asp:BoundColumn DataField="Time" HeaderText="Time" />
                        <asp:BoundColumn DataField="Monday" HeaderText="Monday" />
                        <asp:BoundColumn DataField="Tuesday" HeaderText="Tuesday" />
                        <asp:BoundColumn DataField="Wednsday" HeaderText="Wednsday" />
                        <asp:BoundColumn DataField="Thursday" HeaderText="Thursday" />
                        <asp:BoundColumn DataField="Friday" HeaderText="Friday" />
                    </Columns>
                </asp:DataGrid>

                <br />

                <asp:ScriptManager ID="ScriptManager" runat="server">
                    <Services>
                        <asp:ServiceReference Path="~/Webservices/AutoCompleteCourse.asmx" />
                    </Services>
                </asp:ScriptManager>

            </div>
        </div>
           

 
</asp:Content>               

<asp:Content ID="Content1" runat="server" contentplaceholderid="SideBar">
    <div class="post">
        <p class="red">Step 3</p>
        <p class="entry">
            
            Select additional options: <br />
            
            <asp:DropDownList ID="PreferredList" runat="server">
                <asp:ListItem>DAYS OFF</asp:ListItem>
                <asp:ListItem>NIGHT</asp:ListItem>
                <asp:ListItem>MORNING</asp:ListItem>
            </asp:DropDownList>
        </p>
        <p class="red">Step 4</p>
        <p class="entry">
            <asp:Button ID="GenerateSchedulesButton" runat="server" Text="Generate Schedules" />
        </p>
    </div>
       
</asp:Content>
<%--  --%>